home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch18 / 18fig19b.wrl < prev    next >
Text File  |  1996-09-23  |  590b  |  34 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material { }
  8.         texture ImageTexture {
  9.             url "testimg.jpg"
  10.         }
  11.     }
  12.     geometry IndexedFaceSet {
  13.         coord Coordinate {
  14.             point [
  15.                 -1.0 -1.0 0.0,
  16.                  1.0 -1.0 0.0,
  17.                  1.0  1.0 0.0,
  18.                 -1.0  1.0 0.0,
  19.             ]
  20.         }
  21.         coordIndex [ 0, 1, 2, 3, ]
  22.         texCoord TextureCoordinate {
  23.             point [
  24.                 0.2 0.2,
  25.                 0.8 0.2,
  26.                 0.8 0.8,
  27.                 0.2 0.8,
  28.             ]
  29.         }
  30.         texCoordIndex [ 0, 1, 2, 3, ]
  31.         solid FALSE
  32.     }
  33. }
  34.